package com.xs.project.controller;

import com.xs.project.common.Result;
import com.xs.project.pojo.vo.ExamListReq;
import com.xs.project.pojo.vo.resp.*;
import com.xs.project.service.DataBoardService;
import com.xs.project.service.ExamManagerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/dataBoard")
@Api(tags = "数据大盘")
public class DataBoardController {
    @Resource
    private DataBoardService dataBoardService;

    @ApiOperation(value = "基础数据-大盘", notes = "考试列表")
    @PostMapping(value = "/selectDataBoardBase")
    public Result<DataBoardBaseResp> selectDataBoardBase() {
        return dataBoardService.selectDataBoardBase();
    }

    @ApiOperation(value = "基础数据-考试列表", notes = "考试列表")
    @PostMapping(value = "/selectDataBoardExamList")
    public Result<List<DataBoardExamList>> selectDataBoardExamList() {
        return dataBoardService.selectDataBoardExamList();
    }

    @ApiOperation(value = "基础数据-课程占比", notes = "课程占比")
    @PostMapping(value = "/selectCoursePie")
    public Result<List<StudentSelectCourse>> selectCoursePie() {
        return dataBoardService.selectCoursePie();
    }
}
